import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app'
import user from './modules/user'
import websoket from './modules/websoket'

// 默认静态的路由菜单配置
import permission from './modules/permission'

// 动态后台的路由菜单配置
// import permission from './modules/async-router'
import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    app,
    user,
    permission,
    websoket
  },
  state: {},
  mutations: {},
  actions: {},
  getters
})
